<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <ul class="nav nav-tabs">
                <li class="active"><a href="./images/job_list.html">职位列表</a></li>
                <li><a href="http://127.0.0.1/wenda/?/#add" data-toggle="tab">添加职位</a></li>
            </ul>
        </div>

        <div class="tab-content mod-body">
            <div class="tab-pane active" id="list">
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>职位名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <form id="jobs_form" action="http://127.0.0.1/wenda/?/admin/ajax/save_job/" method="post" onsubmit="return false"></form>
                    <foreach name="ret" item="v" >
                        <tr>
                            <td>{$v.id}</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <input class="job-title form-control" type="text" name="job_list[]" value="{$v.zhiweiname}">
                                    </div>
                                </div>
                            </td>
                            <td><a onclick="AWS.dialog(&#39;confirm&#39;, {&#39;message&#39;: &#39;确认删除?&#39;}, function(){AWS.ajax_request(&#39;/tp/index.php/admin/user/manage/&#39;, &#39;id={$v.id}&#39;);}); " class="icon icon-trash md-tip" data-toggle="tooltip" title="" data-original-title="删除"></a></td>
                        </tr>
                    </foreach>

                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="3">
                            <input type="button" value="保存设置" class="btn btn-primary center-block" onclick="AWS.ajax_post($(&#39;#jobs_form&#39;));">
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
            </div>

            <div class="tab-pane" id="add">
            <div class="table-responsive">
                <form method="post" action=""  class="form-horizontal" >
                    <div class="form-group">
                        <span class="col-sm-2 col-xs-3 control-label">添加新职位:</span>
                        <div class="col-sm-5 col-xs-8">
                            <textarea class="form-control textarea" name="text" rows="5"></textarea>

                            <span class="help-block">一行一个职位名称</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-5 col-xs-8">
                            <button type="submit" class="btn btn-primary">保存设置</button>
                        </div>
                    </div>
                </form>
            </div>
            </div>
        </div>
    </div>
</div>
<div class="aw-footer">
    <p>Copyright © 2016 - Powered By <a href="http://www.wecenter.com/?copyright" target="blank">WeCenter 3.1.7</a></p>
</div>

<!-- DO NOT REMOVE -->
<div id="aw-ajax-box" class="aw-ajax-box"></div>


<div style="display:none;" id="__crond"><img src="./images/saved_resource" width="1" height="1"></div>

<!-- Escape time: 0.11368012428284 --><!-- / DO NOT REMOVE -->

<div id="java">

</div>

</body></html>